//
//  RecommendTableViewCell.m
//  MusicPlayer
//
//  Created by dlios on 15-5-22.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "RecommendTableViewCell.h"

@implementation RecommendTableViewCell
- (void)dealloc
{
    [_cellImageView release];
    [_titleLabel release];
    [_introLabel release];
    [super dealloc];
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        [self createCell];
      
    }
    return self;
}
- (void)awakeFromNib {
    // Initialization code
}

#pragma mark - 创建自定义cell
- (void)createCell
{
  
    self.cellImageView = [[UIImageView alloc] initWithFrame:CGRectMake(self.frame.size.width / 375 * 5, self.frame.size.width / 375 * 5, self.frame.size.width / 375 * 80, self.frame.size.width / 375 * 80)];
    self.cellImageView.clipsToBounds = YES;
    self.cellImageView.layer.cornerRadius = self.frame.size.width / 375 * 15;
    [self.contentView addSubview:self.cellImageView];
    self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(self.frame.size.width / 375 * 100, self.frame.size.width / 375 * 5, self.frame.size.width / 375 * 250, self.frame.size.width / 375 * 45)];
    [self.titleLabel setFont:[UIFont systemFontOfSize:self.frame.size.width / 375 * 21]];
    self.titleLabel.textColor = [UIColor whiteColor];
    [self.contentView addSubview:self.titleLabel];
    self.introLabel = [[UILabel alloc] initWithFrame:CGRectMake(self.frame.size.width / 375 * 100, self.frame.size.width / 375 * 45, self.frame.size.width / 375 * 250, self.frame.size.width / 375 * 45)];
    self.introLabel.textColor = [UIColor whiteColor];
    [self.contentView addSubview:self.introLabel];
    
    [self.cellImageView release];
    [self.titleLabel release];
    [self.introLabel release];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    
    // Configure the view for the selected state
}

@end
